package com.example.logining.domain.pojo;

/**
 * @title: SysUser
 * @author: wywang
 * @date: 2024/11/17
 * @description:
 **/
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysUser {
    private Long id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private Integer status; // 0:禁用 1:启用
    private Date createTime;
    private Date updateTime;
    private Set<SysRole> roles; // 这里可以保持不变，但MyBatis通常会使用ResultMap来处理这种关系

}